home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-05 | 1.2 KB | 27 lines | [TEXT/R*ch] |
- Splash
- by Bob Ebert
- Copyright © 1994 by Apple Computer, Inc. All rights reserved.
-
- This sample illustrates how to make a splash screen that opens up while your
- application is launching. Don't do this unless you app takes more than a
- few seconds to open.
-
- The technique is straightforward. Use BuildContext() to create a view on
- the fly, and open it. We use a few tricks to nicely integrate the template
- into the application.
-
- • Build the splash screen in a separate NTK layout.
- • Make the top-most view in the splash screen not visible.
- • Link the screen into the application's base view, and declare the link.
- • BuildContext(theDeclaredLink._proto) creates the splash screen view.
- • Send the newly created view the open message.
- • Call RefreshViews() to update the screen.
-
- Don't forget to:
- • Close the splash screen! Probably at the end of the viewSetupDoneScript.
- • Nil out the temporary variable for the splash screen view. (Save memory)
- • Make sure the splash screen gets closed if you app quits unexpectedly.
- • Keep your splash screens simple and tasteful. Use "about" screens for
- credits and such. Avoid fancy animations, they just slow down opening
- the app.
-